Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

WebsydianExpress - Message


WSE0266 - Stack Overflow in GetDescendantMessages

Error message

Stackoverflow occurred when retrieving descendant messages. There are more than &(1:) levels in the message hierarchy or there is a circular reference.

Parameters

&(1:) - The number of levels (parent / child) relations the API can handle

Description

When retrieving the child / grandchild / ... messages for a parent message it is necessary to keep a stack that contains the "path" of the current descendant message being handled. The message indicates that the maximum number of levels in this stack has been exceeded.

Action

Theoretically it is possible that you have built an extremely deep message structure - but it is far more likely that you have created a circular reference - so that a child message refers to it's parent as a child (or to any other message that has the child as a descendant).

You should check whether this is the case. If it is, you should investigate the programs calling the API Message.AddReferenceToMainMessage - most likely one of these assignments has switched the parent and child message IDs.

Category / Severity

System / Error